package com.ishanggang.util;

import java.util.Arrays;

public class DistanceUtil {
    public static double distance(double startLon, double startLat, double targetLon, double targetLat) {
        double jl_jd = 102834.74258026089;
        double jl_wd = 111712.69150641056;
        double b = Math.abs((startLat - targetLat) * jl_jd);
        double a = Math.abs((startLon - targetLon) * jl_wd);
        return Math.sqrt(a * a + b * b);
    }

    public static void main(String[] args) {
        System.out.println("args = " + distance(108.98245903546764,34.34541800202822,108.97047123826754,34.34919365284803));
    }


}
